package jeconbond.economic.systems.market;

import jeconbond.experiment.market.MerchantExperimentSettings;
import jeconbond.economic.systems.IRRSFactory;
import jeconbond.economic.systems.IResourceRedestributionSystem;
import jeconbond.experiment.process.IJEBExperimentContext;

public class DefaultMarketRRSFactory implements IRRSFactory {
	@Override
	public IResourceRedestributionSystem newRRS(IJEBExperimentContext experimentContext) {
		MerchantExperimentSettings mes =
				(MerchantExperimentSettings) experimentContext.getExperimentSettings();
		return new DefaultMarketResourceRedestributionSystem(
				new SelectPropsStrat(
						mes.selectPropositionsPart,
						experimentContext.getRandom()
				)
		);
	}
}
